package com.senmiao.ssm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.senmiao.ssm.entity.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OperateLogMapper extends BaseMapper<OperateLog> {
    Page<OperateLog> listLog(Page<Object> objectPage,@Param("types") List<Integer> types);

    Page<OperateLog> listBusinessAndAuditOperateLog(
            Page<OperateLog> permissionPage
            ,@Param("types")List<Integer> types
            ,@Param("roleIds") List<Integer> roleIds);
}